<h1>角色管理 - <span id="secondHeading">管理角色</span></h1>
<% if @flash[:notice] -%>
<div id="notice"><%= @flash[:notice] %></div>
<% end -%>
<TABLE border="0" id="LIST_TB">
	<TR id="LIST_TB_TITLE">
		<td>角色名</td>
	    <td>部门名</td>
	    <td>备注</td>   
	    <td>修改</td>
	    <td>删除</td> 
	</tr>
	<% for role in @roles%>
	<TR id="LIST_TB_CONTENT1">
	    <td><%=role.name%></td>
	    <td><%=role.department.name%></td>
	    <td><%=role.memo%></td>
		<td><%=link_to(image_tag("/images/edit.gif"),{:action=>"edit_role",:id=>role.id})%></td>
		<td><%=link_to(image_tag("/images/delete.gif"),{:action=>"del_role",:id=>role.id},{:confirm=>"你确定要删除该角色吗?"})%></td>
	</tr><% end %>
</TABLE>
<table>
        <tr>
                <td>
                        <input type="button" value="打印当前页" class="sub" onclick="openPrintWindow('LIST_TB')"/>
                        <input type="button" value="导出当前数据" class="sub" onclick="CellAreaExcel('LIST_TB')"/>
                </td>
        </tr>
</table>
